<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>评价</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <!--标准mui.css-->
    <link rel="stylesheet" href="../css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="../css/app.css" />
    <link rel="stylesheet" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
    <style>
        * { touch-action: none; }
        .mui-card .mui-control-content {
            padding: 10px;
        }
        /*自定义样式*/
        html,body{
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }
        a{
            color: #ffffff;
        }
        .mui-content{
            width: 100%;
            height: 100%;
            background: #ffffff;
        }
        .mui-bar{
            background:#4F77AA ;
            color: #ffffff;
            -webkit-box-shadow: 0 0 1px rgba(0,0,0,0);
            box-shadow: 0 0 1px rgba(0,0,0,0);
        }
        .mui-title{
            color: #ffffff;
        }
        .content_item{
            width: 100%;
            height: calc(100% - 52px);
        }
        .content_item .mui-control-content{
            width: 100%;
            height: 100%;
        }

        .mui-segmented-control{
            width: 50%;
            margin-left: 25%;
            border: 1px solid #4F77AA;
            border-radius: 15px;
        }
        .mui-segmented-control .mui-control-item{
            line-height: 30px;
        }
        .mui-segmented-control .mui-control-item1{
            border-radius: 15px 0 0 15px;
        }
        .mui-segmented-control .mui-control-item2{
            border-radius: 0px 15px 15px 0px;
        }
        .mui-segmented-control .mui-control-item.mui-active{
            background: #4F77AA;
        }
        .mui-segmented-control .mui-control-item{
            border-color:#4F77AA;
            border-left: 1px solid #4F77AA;
            color: #4F77AA;
        }
        .mui-media-object i{
            font-size: 36px;
            color: #999999;
            position: relative;
            top:20px;
        }
        .mui-table-view .mui-media-object.mui-pull-left{
            margin-right: 20px;
        }
        .mui-table-view .mui-media-object{
            width: 36px;
            height: 36px;
            line-height: 36px;
        }
        .mui-media-runbutton{
            text-align: center;
            border-radius: 50% 50%;
            margin-top: 20px;
        }
        .mui-media-runbutton span{
            color: #FFFFFF;
            font-size: 12px;
        }
        .color-primary{
            background: #1ab394;
        }
        .color-success {
            background: #1c84c6;
        }
        .color-info {
            background: #23c6c8;
        }
        .color-warning {
            background: #f8ac59;
        }
        .mui-media-body span.date{
            color:#f8ac59 ;
        }
        .mui-input-row label~input, .mui-input-row label~select, .mui-input-row label~textarea{
            width: 55%;
            float:left;
        }
        form span.icon{
            float: right;
            padding-right: 5%;
            padding-top: 10px;
        }
        .line_x{
            width:100%;
            height:8px;
            background: #EFEFF4;
        }
        form .textarea{
            border: 1px solid #dddddd;
            float: right;
            margin-top: 10px;
        }
        .mui-input-group:after{
            background: rgba(0,0,0,0);
        }
        .bottom_submit {
            position: absolute;
            width: 100%;
            height: 48px;
            text-align: center;
            line-height: 48px;
            bottom: 0;
            background: #4F77AA;
        }
        input[type=button]#submit {
            width: 100%;
            height: 48px;
            line-height: 48px;
            background: #4F77AA;
            border: none;
            padding: 0;
            color: #ffffff;
        }
       
        .clear{
            clear: both;
        }
        select.mui-h5{
            font-size: 18px;
        }
        .w33{
            width: 33.33%;
            float: left;
        }
    </style>
</head>

<body>
<header class="mui-bar mui-bar-nav">
    <span class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></span>
    <h1 class="mui-title">评价</h1>
</header>
<div class="mui-content">
            <!--<div id="scroll1" class="mui-scroll-wrapper">-->
                <!--<div class="mui-scroll">-->
                    <form class="mui-input-group">
                        <div class="mui-input-row">
                            <label>评价时间：</label>
                            <input type="text" placeholder="2019-08-30 02:00" id="current_date" />
                        </div>
                        <div class="mui-input-row">
                            <label>满意程度：</label>
                            
                        </div>
                        <div class="mui-input-row">
                        <div class="mui-radio mui-left w33">
                        <label>满意</label>
                        <input name="radio1" type="radio">
                        </div>
                        <div class="mui-radio mui-left w33">
                        <label>一般</label>
                        <input name="radio1" type="radio">
                        </div>
                        <div class="mui-radio mui-left w33">
                        <label>不满</label>
                        <input name="radio1" type="radio">
                        </div>
                        </div>
                       
                        <div class="" style="height:40px;padding: 10px 15px;">
                            <label>意见：</label>
                            <textarea class="textarea" rows="5" placeholder="  意见"></textarea>
                        </div>
                        <div class="clear"></div>

                    </form>
                    <div class="bottom_submit">
                        <input type="button" value="提交" id="submit">
                    </div>

                <!--</div>-->
            <!--</div>-->

</div>
<script src="../js/jquery-1.11.3.js"></script>
<script src="../js/mui.min.js"></script>
<script src="../js/mui.picker.min.js"></script>
<script>
    mui('body').on('tap','a',function(){
        window.top.location.href=this.href;
    });
    mui.init({
        swipeBack: true //启用右滑关闭功能
    });
    (function($) {
        $('#scroll').scroll({
            indicators: true //是否显示滚动条
        });
        $('#scroll1').scroll({
            indicators: true //是否显示滚动条
        });
        var start_time = $('#start_time')[0];
        var btns = $('.btn');
        btns.each(function(i, btn) {
            btn.addEventListener('tap', function() {
                var _self = this;
                if(_self.picker) {
                    _self.picker.show(function (rs) {
                        end_time.value=rs.text;
                        _self.picker.dispose();
                        _self.picker = null;
                    });
                } else {
                    var optionsJson = this.getAttribute('data-options') || '{}';
                    var options = JSON.parse(optionsJson);
                    var id = this.getAttribute('id');
                    /*
                     * 首次显示时实例化组件
                     * 示例为了简洁，将 options 放在了按钮的 dom 上
                     * 也可以直接通过代码声明 optinos 用于实例化 DtPicker
                     */
                    _self.picker = new $.DtPicker(options);
                    _self.picker.show(function(rs) {
                        /*
                         * rs.value 拼合后的 value
                         * rs.text 拼合后的 text
                         * rs.y 年，可以通过 rs.y.vaue 和 rs.y.text 获取值和文本
                         * rs.m 月，用法同年
                         * rs.d 日，用法同年
                         * rs.h 时，用法同年
                         * rs.i 分（minutes 的第二个字母），用法同年
                         */
                        start_time.value=rs.text;
                        // end_time.value=rs.text;
                        /*
                         * 返回 false 可以阻止选择框的关闭
                         * return false;
                         */
                        /*
                         * 释放组件资源，释放后将将不能再操作组件
                         * 通常情况下，不需要示放组件，new DtPicker(options) 后，可以一直使用。
                         * 当前示例，因为内容较多，如不进行资原释放，在某些设备上会较慢。
                         * 所以每次用完便立即调用 dispose 进行释放，下次用时再创建新实例。
                         */
                        _self.picker.dispose();
                        _self.picker = null;
                    });
                }

            }, false);
        });
        var segmentedControl = document.getElementById('segmentedControl');
        $('.mui-input-group').on('change', 'input', function() {
            if (this.checked) {
                var styleEl = document.querySelector('input[name="style"]:checked');
                var colorEl = document.querySelector('input[name="color"]:checked');
                if (styleEl && colorEl) {
                    var style = styleEl.value;
                    var color = colorEl.value;
                    segmentedControl.className = 'mui-segmented-control' + (style ? (' mui-segmented-control-' + style) : '') + ' mui-segmented-control-' + color;
                }
            }
        });
    })(mui);

    $(document).on("click","span.mui-pull-left",function(){
        window.location.href="unevaluated.html";
    })
//    提交报修
    $(document).on("click","#submit",function(){
        window.location.href="../../index.html";
    })
   
</script>

</body>

</html>